package com.zh.socket.websocket;

/**
 * Class Name : ThmsWebSocketMessage<br/>
 * Description: 消息推送基本类<br/>
 * Date       : 2017年12月8日<br/>
 *
 * @author lds
 * @Version V1.0.0
 * @since JDK 1.7
 *
 */
public class ThmsWebSocketMessage {
	
	/**
	 * USER_TYPE_SIMPLE_ZSZD : 简易值守终端用户<br/>
	 * @since JDK 1.7
	 *
	 */
	public static final String dp="DP";
	
	//消息类型
	private String type;
	//用户关账号
	private String userKey;
   	private String userType;
	//数据
	private Object data;
	public ThmsWebSocketMessage() {
	}
	public ThmsWebSocketMessage(String type, String userKey, String userType, Object message) {
		this.setType(type); 
		this.setUserKey(userKey);
		this.setUserType(userType);
		this.setData(message);
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUserKey() {
		return userKey;
	}
	public void setUserKey(String userKey) {
		this.userKey = userKey;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
	

}
